package com.lyc.service;

import com.github.pagehelper.PageInfo;
import com.lyc.pojo.Goods;
import com.lyc.pojo.GoodsInfo;
import com.lyc.pojo.GoodsKinds;

import java.util.List;

public interface GoodsService {
    //查询所有商品
    public List<Goods> selectAll();
    //商品模糊查询
    public List<Goods> selectsp(String goodsKeyword);
    //根据id一级查二级
    public List<GoodsKinds> selectid1(Integer gkid);
    //根据id2级查3级
    public List<GoodsKinds> selectid2(Integer gkid);
    //根据id3级查4级
    public List<GoodsKinds> selectid3(Integer gkid);
    //查单个商品
    public Goods selectOne(int gid);
    //根据一级查4级
    public List<Goods> selectid4(int gkid);
    //查询单个商品详情
    public GoodsInfo selectGoodsInfo(int gid);
    //查询一级分类
    public List<GoodsKinds> selectid();


    /*后台代码*/
    public PageInfo<Goods> getGoodsByPage(Integer page, Integer limit);

    public int delete(int id);

    public int  insert(Goods goods);

    public int update(Goods goods);

    public int deleteSelect(List<String> list);

    public List<Goods> selectByGmiaoshu(String gmiaoshu);
}
